/**
*问题列表
*/
import request from '@/utils/request'
// 列表
export function fetchList(query) {
  return request({
    url: '/admin/CardImage/search',
    method: 'post',
    data: query
  })
}
// 添加
export function add(params) {
  return request({
    url: '/admin/CardImage/add',
    method: 'post',
    data: params
  })
}
// 获取当前行信息
export function rows(ids) {
  return request({
    url: '/admin/CardImage/detail',
    method: 'get',
    params: {
      id: ids
    }
  })
}
// 编辑
export function edit(id,
  name,
  adverts_id,
  jump_url,
  image,
  isshow,
  sort) {
  return request({
    url: '/admin/CardImage/edit',
    method: 'post',
    data: {
      id,
      name,
      adverts_id,
      jump_url,
      image,
      isshow,
      sort
    }
  })
}
// 删除
export function del(ids) {
  return request({
    url: '/admin/CardImage/del',
    method: 'post',
    data: {
      ids
    }
  })
}

